const Controller = require('egg').Controller;

class Top250Controller extends Controller {
  async index() {
    const { ctx } = this;
    var db = this.app.mongodb;
    var res = await db.collection("top250").find().toArray();
    console.log(res);
    ctx.body = res
  }
}

module.exports = Top250Controller;